/**
 * 获取随机数
 * @param max number
 * @param min number
 * @returns {number}
 * @constructor
 */
export const getRandomFn = (max, min) => {
  return Math.floor(Math.random() * (max - min + 1) + min)
};

/**
 * 获取数据类型
 * @param value
 * @returns {*}
 */
export const getType = value => {
  let type = Object.prototype.toString.call(value);
  type = type.slice(8, -1);
  return type
}